<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jinja2模板</title>
</head>

<body>
    <h2>jinja2模板</h2>
    <hr>
    <p>name = {{ name }}</p>
    {% for n in name  %}
    <b> {{loop.index}} {{n}}</b>
    {% endfor %}

    {% for n in  range(10) %}
    <div>{{n}}</div>
    {% endfor %}
</body>

</html>